<?php
?>

<div class="tab-row-one">
    <div class="tab-left">
        <?php if(!empty(Yii::$app->request->get()['start_time']) || Yii::$app->request->get()['end_time']){ ?>
            <button><a  href="cashier?action=<?php echo Yii::$app->request->get()['action'];?>&searchTime=1">今日</a></button>
            <button><a  href="cashier?action=<?php echo Yii::$app->request->get()['action'];?>&searchTime=2">本月</a></button>
            <button><a  href="cashier?action=<?php echo Yii::$app->request->get()['action'];?>&searchTime=3">本年</a></button>
        <?php }else{ ?>
            <button class="<?php echo  (Yii::$app->request->get()['searchTime'] <=1) ? 'current': '';?>"><a  href="cashier?action=<?php echo Yii::$app->request->get()['action'];?>&searchTime=1">今日</a></button>
            <button class="<?php echo  (Yii::$app->request->get()['searchTime'] ==2) ? 'current': '';?>"><a  href="cashier?action=<?php echo Yii::$app->request->get()['action'];?>&searchTime=2">本月</a></button>
            <button class="<?php echo  (Yii::$app->request->get()['searchTime'] ==3) ? 'current': '';?>"><a  href="cashier?action=<?php echo Yii::$app->request->get()['action'];?>&searchTime=3">本年</a></button>
        <?php } ?>
    </div>
    <div class="tab-right">
        <div class="form-box">
            <form action="cashier" method="get">
                <input type="hidden" name="action" value="<?php echo Yii::$app->request->get()['action'];?>">
                <div class="box-input fl">
                    <label class="ft-17">日期</label>
                    <input type="text" name="start_time" id="ordertime_start" value="<?php echo Yii::$app->request->get()['start_time'];?>" onclick="laydate()">
                    <img src="/backend/img/financial/calculator.png"/>
                </div>
                <div class="box-input fl">
                    <label>至</label>
                    <input type="text" name="end_time" id="ordertime_end" value="<?php echo Yii::$app->request->get()['end_time'];?>" onclick="laydate()">
                    <img src="/backend/img/financial/calculator.png"/>
                </div>
                <div class="fl form-group">
                   <span class="btnMd" style=" color: #fff;border-radius: 6px; ">
			            <input type="submit" value="搜索" style="display: block; width: 100%; background: 0; border:0; line-height: 42px;">
		            </span>
                </div>
            </form>
        </div>
    </div>
</div>

<?php $this->registerJsFile("@web/system/financial/statistics/fin-nav.js",['position'=>$this::POS_END]);?>
